package com.taxi.driver.socket.message;


import com.taxi.driver.common.AppConfig;
import com.taxi.driver.socket.message.base.Message;
import com.taxi.driver.socket.message.base.MessageType;

/**
 * 登录报文
 *
 * @author Zoro
 * @date 2016/11/22
 */
public class LoginMessage extends Message {

    private String token;
    private From from;
    private String appid; //约约AppKey

    public enum From {
        PASSENGER, DRIVER, SERVER
    }

    public LoginMessage(From from) {
        super();
        super.setType(MessageType.LOGIN);
        this.appid = AppConfig.YUEYUE_APPKEY;
        this.from = from;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public From getFrom() {
        return from;
    }

    public void setFrom(From from) {
        this.from = from;
    }

    public String getAppid() {
        return appid;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

}